#include "C_TextButton.h"
using namespace gui;

C_TextButton::C_TextButton()
: m_out(255, 255, 255, 255)
, m_over(100, 100, 255, 255)
, m_click(255, 255, 100, 255)
, m_press(255, 100, 100, 255)
{
	this->addWidget(&m_capture);
	m_capture.setTextSize(20);
	this->setMargin(0.f, 0.f, 0.f, 0.f);
}


C_TextButton::~C_TextButton()
{
}

void C_TextButton::renderOver()
{
	m_capture.setColorText(m_over);
	m_capture.render();
}

void C_TextButton::renderOut()
{
	m_capture.setColorText(m_out);
	m_capture.render();
}

void C_TextButton::renderPress()
{
	m_capture.setColorText(m_press);
	m_capture.render();
}

void C_TextButton::renderClick()
{
	m_capture.setColorText(m_click);
	m_capture.render();
}

